Skip to content

Conversation

Samiul-TheSoccerFan
Copy link
Contributor

Will be populated...

PUT my_documents
{
  "mappings": {
    "properties": {
      "title": {
        "type": "text"
      },
      "content": {
        "type": "text"
      }
    }
  }
}

PUT my_documents/_doc/1
{ 
  "title": "Introduction to Machine Learning",
  "content": "This guide covers supervised and unsupervised learning." 
}

PUT my_documents/_doc/2
{ 
  "title": "Solar Panels for Beginners",
  "content": "Learn how solar energy works and its benefits."
}

POST my_documents/_search
{
  "query": {
    "multi_match": {
      "query": "learn solar energy",
      "fields": ["title", "content"]
    }
  }
}


PUT my_semantic_documents
{
  "mappings": {
    "properties": {
      "title": {
        "type": "semantic_text"
      }
    }
  }
}

PUT my_semantic_documents/_doc/1
{ 
  "title": "Introduction to Machine Learning"
}

PUT my_semantic_documents/_doc/2
{ 
  "title": "Solar Panels for Beginners"
}

POST my_semantic_documents/_search
{
  "query": {
    "multi_match": {
      "query": "learn solar energy",
      "fields": [
        "title"
      ]
    }
  }
}

@Samiul-TheSoccerFan
Copy link
Contributor Author

@elasticmachine update branch

@Samiul-TheSoccerFan Samiul-TheSoccerFan changed the title [Multi Match] Refactor to support Multi Match Add multi_match support for semantic_text Jul 28, 2025
@Samiul-TheSoccerFan
Copy link
Contributor Author

@elasticmachine update branch

@Samiul-TheSoccerFan Samiul-TheSoccerFan changed the title Add multi_match support for semantic_text [POC] Add multi_match support for semantic_text Jul 30, 2025
@Samiul-TheSoccerFan Samiul-TheSoccerFan changed the title [POC] Add multi_match support for semantic_text [POC - 1] Add multi_match support for semantic_text Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants